<!DOCTYPE html>   
<html lang="en">   
<head>   
<meta charset="utf-8">   
<title>数据字典</title>   
<meta name="description" content="Twitter Bootstrap">  
<link href="{{ static_url('css/bootstrap.spacelab.min.css') }}" rel="stylesheet">
<script type="text/javascript">
	function add() {
		document.location = "{{ reverse_url('add_base_item') }}";
	}
</script>
</head>
<body>
<form class="well form-search">
	<input type="text" class="input-medium search-query">
	<button type="submit" class="btn">搜索</button>
</form>
<div class="span11" align="right">
	<button type="button" class="btn" onclick="add();">新增</button>
</div>
<table class="table table-striped">  
        <thead>  
          <tr>  
            <th>序号</th>  
            <th>基础数据编码</th>  
            <th>基础数据值</th>  
            <th>建立时间</th>
            <th>最后修改时间</th>
            <th>操作</th>
          </tr>  
        </thead>  
        <tbody>
        	{% for item in data %}
          <tr>  
            <td>{{ item.id }}</td>  
            <td>{{ item.item_key }}</td>  
            <td>{{ item.item_value }}</td>  
            <td>{{ item.created }}</td>
            <td>{{ locale.format_date(item.modified) }}</td>
            <td><a href="{{ reverse_url('delete_base_item') }}?itemId={{item.id}}">删除</a></td>
          </tr>
          {% end %}
        </tbody>
      </table>
</body>
</html>